package com.zyh.type;
import lombok.Getter;

@Getter
public enum CodeStatusEnum {
    SYSTEM_ERROR(500, "系统异常，请联系管理员"),
    PARAM_EMPTY(2002, "参数不能为空"),
    PARAM_ERROR(2001, "参数格式错误"),
    USER_NOT_FOUND(1001, "用户不存在"),
    USER_OR_PWD_ERROR(1003, "用户名或密码错误"),
    USER_ALREADY_EXISTS(1002, "用户名已存在"),
    TAG_NOT_FOUND(3001, "标签不存在"),
    COMMENT_NOT_FOUND(4001, "评论不存在"),
    SUCCESS(200, "操作成功");

    private final Integer code;
    private final String message;

    CodeStatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
